package com.foosun.core.entity;


import com.foosun.core.base.BaseEntity;
import com.foosun.core.util.JDBCName;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: xi
 * Date: 14-1-2
 * Time: 上午11:17
 * To change this template use File | Settings | File Templates.
 */
@JDBCName("C_FILE_OBJECT")
public class FileObject extends BaseEntity {

    public final static class FILE_TYPE {
        public final static String ZIP = "zip";
        public final static String PNG = "png";
        public final static String DOC = "doc";
        public final static String XLS = "xls";
    }

    private String name;
    private String original;
    private String path;
    private String suffix;
    private String url;
    private Long size;

    @Override
    public Map<String, Object> getEntityMap() {
        Map<String, Object> map = super.getEntityMap();
        map.put("name", name);
        map.put("original", original);
        map.put("path", path);
        map.put("suffix", suffix);
        map.put("url", url);
        map.put("size", size);
        return map;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOriginal() {
        return original;
    }

    public void setOriginal(String original) {
        this.original = original;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }
}
